/*
 *  Copyright 2020-2021 Li Fei
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.pengshun.modules.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @author zhagning
 * @description 运输订单记录表
 * @date 2020-10-29
 **/
@Entity
@Data
@Table(name = "ps_transport_order_record")
public class TransportOrderRecord   {

    @Id
    @Column(name = "transport_order_record_id")
    @ApiModelProperty(value = "主键")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ApiModelProperty(value = "货运Id")
    private Long transportId;

    @ApiModelProperty(value = "运输接单id(可为空)")
    private Long TransportTakeCarriageId;

    @ApiModelProperty(value = "订单id(可为空代表运输部自己发布)")
    private Long orderId;

    @ApiModelProperty(value = "运输用户Id")
    private Long transportUserId;

    @ApiModelProperty(value = "运输状态")
    private Integer recordStatus;

    @ApiModelProperty(value = "运输时间")
    private Date recordTime;

    public TransportOrderRecord() {
    }

    public TransportOrderRecord(Long transportId, Long TransportTakeCarriageId, Long orderId, Long transportUserId, Integer recordStatus) {
        this.transportId = transportId;
        this.TransportTakeCarriageId = TransportTakeCarriageId;
        this.orderId = orderId;
        this.transportUserId = transportUserId;
        this.recordStatus = recordStatus;
    }

}